Class Negation

java.lang.Object
edu.uky.ai.lp.logic.BooleanExpression
edu.uky.ai.lp.logic.Negation
All Implemented Interfaces:
Expression, Formula

public class Negation
extends BooleanExpression
Represents an expression whose opposite is true.
Author:
Stephen G. Ware
  • Field Details

  • Constructor Details

    • Negation

      public Negation​(Expression argument)
      Constructs a negation of the given argument.
      Parameters:
      argument - the expression to be negated
  • Method Details

    • toString

      public java.lang.String toString()
      Overrides:
      toString in class java.lang.Object
    • substitute

      public Negation substitute​(Unifier unifier)
      Description copied from interface: Formula
      Return a version of this formula with its variables replaced with the values assigned to them by a unifier.
      Parameters:
      unifier - the unifier
      Returns:
      the formula with variables replaced